package sesi.ejava.control;

import sesi.ejava.stream.ControlOutputStream;
import sesi.ejava.stream.ControlOutputStream.ControlData;

public class ControlDataSingleton {
	
	protected static ControlDataSingleton instance = null;
	
	private ControlData data;
	
	private ControlDataSingleton () {
		data = ControlOutputStream.getInstance().new ControlData () ;
		
	}
	
	public static synchronized ControlDataSingleton getInstance () {
		if (instance == null) {
			instance = new ControlDataSingleton() ;
		} 
		return instance ;
	}
	
	public ControlData getControlData () {
		return data ;
	}
}
